/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
//import com.mobile.auth.gatewayauth.Constant;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class QueryConfig {
    @NotNull
    private final List<Iterm> itermList;
    @NotNull
    private final String name;
    private final int sort;
    @NotNull
    private final String value;

    public QueryConfig(@NotNull List<Iterm> itermList, @NotNull String name, int i2, @NotNull String value) {
        Intrinsics.checkNotNullParameter(itermList, "itermList");
        Intrinsics.checkNotNullParameter(name, "name");
        Intrinsics.checkNotNullParameter(value, "value");
        this.itermList = itermList;
        this.name = name;
        this.sort = i2;
        this.value = value;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ QueryConfig copy$default(QueryConfig queryConfig, List list, String str, int i2, String str2, int i3, Object obj) {
        if ((i3 & 1) != 0) {
            list = queryConfig.itermList;
        }
        if ((i3 & 2) != 0) {
            str = queryConfig.name;
        }
        if ((i3 & 4) != 0) {
            i2 = queryConfig.sort;
        }
        if ((i3 & 8) != 0) {
            str2 = queryConfig.value;
        }
        return queryConfig.copy(list, str, i2, str2);
    }

    @NotNull
    public final List<Iterm> component1() {
        return this.itermList;
    }

    @NotNull
    public final String component2() {
        return this.name;
    }

    public final int component3() {
        return this.sort;
    }

    @NotNull
    public final String component4() {
        return this.value;
    }

    @NotNull
    public final QueryConfig copy(@NotNull List<Iterm> itermList, @NotNull String name, int i2, @NotNull String value) {
        Intrinsics.checkNotNullParameter(itermList, "itermList");
        Intrinsics.checkNotNullParameter(name, "name");
        Intrinsics.checkNotNullParameter(value, "value");
        return new QueryConfig(itermList, name, i2, value);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof QueryConfig)) {
            return false;
        }
        QueryConfig queryConfig = (QueryConfig) obj;
        return Intrinsics.areEqual(this.itermList, queryConfig.itermList) && Intrinsics.areEqual(this.name, queryConfig.name) && this.sort == queryConfig.sort && Intrinsics.areEqual(this.value, queryConfig.value);
    }

    @NotNull
    public final List<Iterm> getItermList() {
        return this.itermList;
    }

    @NotNull
    public final String getName() {
        return this.name;
    }

    public final int getSort() {
        return this.sort;
    }

    @NotNull
    public final String getValue() {
        return this.value;
    }

    public int hashCode() {
        return (((((this.itermList.hashCode() * 31) + this.name.hashCode()) * 31) + this.sort) * 31) + this.value.hashCode();
    }

    @NotNull
    public String toString() {
        return "QueryConfig(itermList=" + this.itermList + ", name=" + this.name + ", sort=" + this.sort + ", value=" + this.value + ')';
    }
}